FROM python:3.9.13-slim-buster
WORKDIR /app
COPY script/ /app
RUN ls -la /app/*
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN python download_coscli.py
RUN chmod 755 /usr/local/bin/coscli
RUN chmod +x coscli_upload.sh
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ENTRYPOINT ["sh"]
CMD ["coscli_upload.sh"]
